package com.tushu.book.domain;

import com.tushu.book.utils.annotation.Excel;
import com.tushu.book.utils.annotation.Excel.*;

import java.util.Date;

public class books extends BaseEntity {
    /**
     * 编号
     */
    private int id;
    /**
     * 书名
     */
    @Excel(name = "图书名称")
    private String title;
    /**
     * 价格
     */
    @Excel(name = "价格")
    private double price;
    /**
     * 出版日期
     */
    //@Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    private Date publishDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    @Override
    public String toString() {
        return "books{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", publishDate=" + publishDate +
                '}';
    }
}
